package com.yellowpage.ndc.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * ProdClass entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="db_ndc.PROD_CLASS")

public class ProdClass implements java.io.Serializable {


    // Fields    

     private Long classId;
     private String cityCode;
     private String cityName;
     private String code;
     private String line;
     private String name;
     private String engName;
     private String pyName;
     private String bxName;
     private String type;
     private String note;
     private Short status;


    // Constructors

    /** default constructor */
    public ProdClass() {
    }

	/** minimal constructor */
    public ProdClass(String line, String name) {
        this.line = line;
        this.name = name;
    }
    
    /** full constructor */
    public ProdClass(String cityCode, String cityName, String code, String line, String name, String engName, String pyName, String bxName, String type, String note, Short status) {
        this.cityCode = cityCode;
        this.cityName = cityName;
        this.code = code;
        this.line = line;
        this.name = name;
        this.engName = engName;
        this.pyName = pyName;
        this.bxName = bxName;
        this.type = type;
        this.note = note;
        this.status = status;
    }

   
    // Property accessors
    @GenericGenerator(name = "generator", strategy = "increment")
    @Id
	@GeneratedValue(generator = "generator")
    @Column(name="CLASS_ID", unique=true, nullable=false, precision = 18)

    public Long getClassId() {
        return this.classId;
    }
    
    public void setClassId(Long classId) {
        this.classId = classId;
    }
    
    @Column(name="CITY_CODE", length=6)

    public String getCityCode() {
        return this.cityCode;
    }
    
    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }
    
    @Column(name="CITY_NAME", length=64)

    public String getCityName() {
        return this.cityName;
    }
    
    public void setCityName(String cityName) {
        this.cityName = cityName;
    }
    
    @Column(name="CODE", length=8)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="LINE", nullable=false, length=12)

    public String getLine() {
        return this.line;
    }
    
    public void setLine(String line) {
        this.line = line;
    }
    
    @Column(name="NAME", nullable=false, length=256)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="ENG_NAME", length=512)

    public String getEngName() {
        return this.engName;
    }
    
    public void setEngName(String engName) {
        this.engName = engName;
    }
    
    @Column(name="PY_NAME", length=512)

    public String getPyName() {
        return this.pyName;
    }
    
    public void setPyName(String pyName) {
        this.pyName = pyName;
    }
    
    @Column(name="BX_NAME", length=512)

    public String getBxName() {
        return this.bxName;
    }
    
    public void setBxName(String bxName) {
        this.bxName = bxName;
    }
    
    @Column(name="TYPE", length=8)

    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    @Column(name="NOTE", length=1024)

    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }
    
    @Column(name="STATUS", precision=3, scale=0)

    public Short getStatus() {
        return this.status;
    }
    
    public void setStatus(Short status) {
        this.status = status;
    }
   








}